<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{$lang.cp_home}{if $ur_here} - {$ur_here}{/if}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="styles/general.css" rel="stylesheet" type="text/css" />
<link href="styles/main.css" rel="stylesheet" type="text/css" />
{literal}
<style type="text/css">
body {
   background:#016ba9;
}
</style>
{/literal}
{insert_scripts files="../js/utils.js,validator.js"}
<script language="JavaScript">
<!--
// 这里把JS用到的所有语言都赋值到这里
{foreach from=$lang.js_languages key=key item=item}
var {$key} = "{$item}";
{/foreach}
{literal}
if (window.parent != window)
{
  window.top.location.href = location.href;
}
{/literal}
//-->
</script>
</head>
<body>
<form method="post" action="privilege.php" name='theForm' onsubmit="return validate()">
<div class="block" style="position:relative">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="login_st">
  <tr>
    <td>账&nbsp;&nbsp;&nbsp;号:</td>
    <td><input type="text" name="username" class="login_st_input" /></td>
  </tr>
  <tr>
    <td>密&nbsp;&nbsp;&nbsp;码:</td>
    <td><input type="password" name="password" class="login_st_input" /></td>
  </tr>
  <tr>
    <td></td>
    <td><div class="po_re"><input type="checkbox" value="1" name="remember" id="remember" /><span>保存登陆信息&nbsp;&nbsp;&nbsp;<a href="get_password.php?act=forget_pwd">忘记密码

</a></span></div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td><input type="submit" value="" class="login_input"/></td>
  </tr>
</table>
</div>
  <input type="hidden" name="act" value="signin" />
</form>
<script language="JavaScript">
<!--
  document.forms['theForm'].elements['username'].focus();
  {literal}
  /**
   * 检查表单输入的内容
   */
  function validate()
  {
    var validator = new Validator('theForm');
    validator.required('username', user_name_empty);
    //validator.required('password', password_empty);
    if (document.forms['theForm'].elements['captcha'])
    {
      validator.required('captcha', captcha_empty);
    }
    return validator.passed();
  }
  {/literal}
//-->
</script>
</body>